class Solution {
    public int getSum(int a, int b) {
        while(b != 0) {
            int ret = a;
            a = a ^ b; // 无进位相加
            b = (ret & b) << 1; //算进位
        }
        return a;
    }
}